package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物资信息对象 sys_device
 * 
 * @author ruoyi
 * @date 2022-07-20
 */
public class SysDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 物资id */
    @Excel(name = "物资编号")
    private Long deviceId;

    /** 物资名称 */
    @Excel(name = "物资名称")
    private String deviceName;

    /** 规格型号 */
    @Excel(name = "规格型号")
    private String deviceModel;

    /** 库存 */
    @Excel(name = "库存")
    private Integer stock;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 仓库 */
    @Excel(name = "仓库")
    private String storehouse;

    /** 供应商id */
    @Excel(name = "供应商编号")
    private Long supplierId;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplierName;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setDeviceModel(String deviceModel) 
    {
        this.deviceModel = deviceModel;
    }

    public String getDeviceModel() 
    {
        return deviceModel;
    }
    public void setStock(Integer stock) 
    {
        this.stock = stock;
    }

    public Integer getStock() 
    {
        return stock;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setStorehouse(String storehouse) 
    {
        this.storehouse = storehouse;
    }

    public String getStorehouse() 
    {
        return storehouse;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }
    public void setSupplierName(String supplierName) 
    {
        this.supplierName = supplierName;
    }

    public String getSupplierName() 
    {
        return supplierName;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deviceId", getDeviceId())
            .append("deviceName", getDeviceName())
            .append("deviceModel", getDeviceModel())
            .append("stock", getStock())
            .append("unit", getUnit())
            .append("storehouse", getStorehouse())
            .append("supplierId", getSupplierId())
            .append("supplierName", getSupplierName())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
